define(function (require, exports, module) {
    var sTpl = require("modules/cube-methods/index.html");



    var vueComponent = Vue.extend({
        template: sTpl,
        props: ["curCubeId"],
        data: function () {
            return {
                tableData: []
            }
        },
        methods: {
            handleClick: function (row) {
                this.openWin
                var config = {
                    url: 'http://www.baidu.com',
                    menuName: row.cnName + '-编辑'
                };
                this.openWin(config);
            }
        },
        created: function () {
            this.curCubeId = parseInt(this.$route.params.curCubeId) || 0;
            var map = require("config/api.js");
            var allData = map["cube_methods"] || {};
            this.tableData = allData[this.curCubeId];
        }
    });


    Vue.component('m-cube-methods', vueComponent); //都全局注册 同时exports

    module.exports = vueComponent;
});